<ui:fragment xmlns="http://w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:virtual="http://virtual.servidor">


	<p:outputPanel layout="block" id="frete">



		<p:outputPanel layout="block" id="frete-calcular-finaliza">

			<div class="div-detalhes-frete">
			<div class="row-fluid">
				<div class="span2 div-lbl-tipo-frete">
					<h:outputText value="Tipo de Entrega: " />
				</div>
				<div class="span10 div-rdo-frete">
					<p:selectOneRadio value="#{venderMB.tipoFrete}"
						styleClass="radio-frete">
						<f:selectItems value="#{carrinhoMB.getListTipoFrete()}" var="tf"
							itemLabel="#{tf.nome}" itemValue="#{tf}" />
					</p:selectOneRadio>
				</div>
			</div>

			<div class="row-fluid">
				<div class="span2 div-lbl-tipo-frete">
					<p:outputLabel value="CEP:" />
				</div>
				<div class="span2 inline-block">
					<h:outputText value="#{venderMB.venda.enderecoEntrega.cep}" />
				</div>
				<div class="inline-block">
					
				</div>
			</div>
			</div>
			<div class="div-btn-calcular-frete">
				<p:commandLink value="Calcular"
						styleClass="btn-virtual"
						actionListener="#{venderMB.recalculaFrete()}" ajax="true"
						update="@all" />
			</div>
		</p:outputPanel>

		<p:outputPanel layout="block" id="frete-calculado-finaliza" styleClass="row-fluid">
				<h:outputText
					value="O valor do frete (#{venderMB.tipoFrete}) para o cep indicado é de " />
				<h:outputText value="#{venderMB.venda.totalFrete}" styleClass="font-bold">
					<f:convertNumber type="currency" />
				</h:outputText>
				<h:outputText value=" e será entregue no prazo de"></h:outputText>
				<h:outputText value=" #{venderMB.frete.prazoEntrega} dia(s)."
					styleClass="font-bold" />
		</p:outputPanel>
	</p:outputPanel>	

</ui:fragment>